﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoaiSach_TieuDe.ascx.cs" Inherits="LoaiSach_TieuDe" %>
<asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource1">
    <EditItemTemplate>
        MaLoai:
        <asp:TextBox ID="MaLoaiTextBox" runat="server" Text='<%# Bind("MaLoai") %>' />
        <br />
        TenLoai:
        <asp:TextBox ID="TenLoaiTextBox" runat="server" Text='<%# Bind("TenLoai") %>' />
        <br />
        HinhLoai:
        <asp:TextBox ID="HinhLoaiTextBox" runat="server" 
            Text='<%# Bind("HinhLoai") %>' />
        <br />
        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
            CommandName="Update" Text="Update" />
        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
    </EditItemTemplate>
    <InsertItemTemplate>
        MaLoai:
        <asp:TextBox ID="MaLoaiTextBox0" runat="server" Text='<%# Bind("MaLoai") %>' />
        <br />
        TenLoai:
        <asp:TextBox ID="TenLoaiTextBox0" runat="server" 
            Text='<%# Bind("TenLoai") %>' />
        <br />
        HinhLoai:
        <asp:TextBox ID="HinhLoaiTextBox0" runat="server" 
            Text='<%# Bind("HinhLoai") %>' />
        <br />
        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
            CommandName="Insert" Text="Insert" />
        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancel" />
    </InsertItemTemplate>
    <ItemTemplate>
        <asp:Image ID="Image1" runat="server" 
            ImageUrl='<%# Eval("HinhLoai", "{0}") %>' />
        <br />
    </ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetOneLoaiSach" TypeName="BussinessObject.LoaiSachController">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="-1" Name="MaLoai" 
            QueryStringField="MaLoai" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
